/*
 * Team Name: Team Sasquatch
 * Cody Sharff
 * Anthony Rios
 * Prince Kishore
 * Travis Drake
 */

package model;

/**
 * 
 * @author Travis
 *
 */
public class User {
  
  public final String my_ID;

  public final UserType my_user_type;
  
  private final String my_password;
  
  public User(String the_name, UserType the_user_type, String the_password)
  {
    my_ID = the_name;
    
    my_password = the_password;
    
    my_user_type = the_user_type;
  }
  
  public boolean checkPassword(String the_password)
  {
    return the_password.equals(my_password);
  }
  
  public String getName()
  {
      return my_ID;
  }
  
  public UserType getType()
  {
      return my_user_type;
  }
  
  public String getPassword()
  {
      return my_password;
  }
  
  public String getInfo()
  {
    //TODO fix with xml parsing!!!!
    return "non-functional at the moment, will be implemented with xml parsing";
  }
}
